package com.yidi.system.domain;

import com.yidi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ：Xn
 * @ClassName: SysUserOnline
 * @date ：2021-10-19 16:31
 * @describe ：当前在线会话
 */
@Getter
@Setter
@Entity
@Table(name = "sys_user_online")
@ToString(callSuper=true)
public class SysUserOnline extends BaseEntity
{
    /** 会话编号 */
    @Column(name = "token_id")
    private String tokenId;

    /** 部门名称 */
    @Column(name = "dept_name")
    private String deptName;

    /** 用户名称 */
    @Column(name = "user_name")
    private String userName;

    /** 登录IP地址 */
    private String ipaddr;

    /** 登录地址 */
    @Column(name = "login_location")
    private String loginLocation;

    /** 浏览器类型 */
    private String browser;

    /** 操作系统 */
    private String os;

    /** 登录时间 */
    @Column(name = "login_time")
    private Long loginTime;

}
